package com.atguigu.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author Syh
 * @email 1584442935@qq.com
 * @date 2022-02-07 14:29:04
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 根据菜单分级查询出菜单
     * @return
     */
    List<CategoryEntity> listWithTree();

    /**
     * 逻辑删除菜单
     * @param catIds
     */
    void deletecategoryByIds(List<Long> catIds);

    //级联更新
    void updateDetilById(CategoryEntity category);

}

